﻿<MRow Justify="@JustifyTypes.Center">
    <MDialog @bind-Value="dialog"
             Scrollable
             MaxWidth="300">
        <ActivatorContent>
            <MButton Color="primary" Dark @attributes="@context.Attrs">Open Dialog</MButton>
        </ActivatorContent>
        <ChildContent>
            <MCard>
                <MCardTitle>Select Country</MCardTitle>
                <MDivider></MDivider>
                <MCardText Style="height: 300px;">
                    <MCheckbox TValue="bool" Label="Bahamas"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bahrain"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bangladesh"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Barbados"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Belarus"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Belgium"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Belize"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Benin"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bhutan"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bolivia"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bosnia and Herzegovina"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Botswana"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Brazil"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Brunei"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Bulgaria"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Burkina Faso"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Burma"></MCheckbox>
                    <MCheckbox TValue="bool" Label="Burundi"></MCheckbox>
                </MCardText>
                <MDivider></MDivider>
                <MCardActions>
                    <MButton Color="blue darken-1"
                             Text
                             OnClick="() => dialog = false">
                        Close
                    </MButton>
                    <MButton Color="blue darken-1"
                             Text
                             OnClick="() => dialog = false">
                        Save
                    </MButton>
                </MCardActions>
            </MCard>
        </ChildContent>
    </MDialog>
</MRow>

@code {
    bool dialog = false;
}